/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.ArrayList;

/**
 *
 * @author CUNEYT
 *
 * This class represents the User that the Profiler agent is supposed to maintain.
 *
 */
public class User {

    private String name;
    private int age;
    private String occupation;
    private String gender;
    private ArrayList<String> interests = null;
    private ArrayList<Artifact> visited = null;

    public User(String name, int age, String occ, String gen, ArrayList<String> interests) {
        this.name = name;
        this.age = age;
        this.occupation = occ;
        this.gender = gen;
        this.interests = interests;
        this.visited = new ArrayList<Artifact>();
    }

    public void visited(Artifact a) {
        if (!visited.contains(a)) {
            visited.add(a);
        }
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public ArrayList<String> getInterests() {
        return interests;
    }

    public void setInterests(ArrayList<String> interests) {
        this.interests = interests;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public ArrayList<Artifact> getVisited() {
        return visited;
    }

    public void setVisited(ArrayList<Artifact> visited) {
        this.visited = visited;
    }
}
